package com.zhentao.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhentao.domain.SSubject;
import com.zhentao.dto.SubjectDto;
import com.zhentao.mapper.SLevelMapper;
import com.zhentao.service.SSubjectService;
import com.zhentao.mapper.SSubjectMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author ww
* @description 针对表【s_subject】的数据库操作Service实现
* @createDate 2024-07-24 14:07:48
*/
@Service
public class SSubjectServiceImpl extends ServiceImpl<SSubjectMapper, SSubject>
    implements SSubjectService{
    @Resource
    SLevelMapper sLevelMapper;
    @Override
    public List<SubjectDto> findUserSub(Integer uid) {
        List<SubjectDto> userSub = sLevelMapper.findUserSub(uid);
        return userSub;
    }
}




